"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GoodConfig = void 0;
class GoodConfig {
    constructor(id, gems, rmb, good_type, goodAddType) {
        this.id = 0;
        this.chargenum = 0; //钻石
        this.rmb = 0; //
        this.good_type = 0;
        this.goodAddType = "";
        this.id = id;
        this.chargenum = gems;
        this.rmb = rmb;
        this.good_type = good_type;
        this.goodAddType = goodAddType;
    }
    getGooName() {
        if (this.good_type == GoodConfig.GoodType.Gem) {
            return "钻石";
        }
        else if (this.good_type == GoodConfig.GoodType.BeVip) {
            return "成为VIP";
        }
        else if (this.good_type == GoodConfig.GoodType.ChangeVip) {
            return "换绑VIP";
        }
    }
}
exports.GoodConfig = GoodConfig;
GoodConfig.GoodType = {
    Gem: 1,
    BeVip: 2,
    ChangeVip: 3,
    Coins: 4,
};
GoodConfig.GoodAddType = {
    gems: "gems",
    coins: "coins"
};
GoodConfig.configMap = new Map()
    .set(1, new GoodConfig(1, 1250, 50, GoodConfig.GoodType.Gem, GoodConfig.GoodAddType.gems))
    .set(2, new GoodConfig(2, 2550, 100, GoodConfig.GoodType.Gem, GoodConfig.GoodAddType.gems))
    .set(3, new GoodConfig(3, 6000, 200, GoodConfig.GoodType.Gem, GoodConfig.GoodAddType.gems))
    .set(4, new GoodConfig(4, 16000, 500, GoodConfig.GoodType.Gem, GoodConfig.GoodAddType.gems))
    .set(5, new GoodConfig(5, 0, 60, GoodConfig.GoodType.BeVip, GoodConfig.GoodAddType.gems))
    .set(6, new GoodConfig(6, 0, 50, GoodConfig.GoodType.ChangeVip, GoodConfig.GoodAddType.gems));
